<!--有理想的地方，地狱都是天堂-->
<!--Copyright @ df81.com 版权所有-->
<!--作者: 南国老符 邮箱：1062129401@qq.com-->
{if config('app.other.system_type') neq 'company'}{include file="public/js_ueditor" /}{/if}
<div class="modal-header">
    <span class="modal-title"><img src="{$userRs.avatar}" width="20" height="20" class="img-circle mr-1" onerror="this.src='{:config('template.skin')}/img/avatar.png'">{$userRs.nickname} [ {$rs.addtime|date='Y-m-d H:i'} ]</span>
    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span></button>
</div>
<div class="modal-body">
    <form name="form_edit" id="form_edit" method="post" action="{:url('/feedback/edit',['lang'=>$lang])}">
        <input type="hidden" name="id" value="{$rs.id}">
        <div class="row">
            <div class="col-md-12">
                {notempty name="rs.title"}<div class="form-control-static mr-2">{$rs.title}</div>{/notempty}
                    <div class="form-control-static mr-2">
                        <span class="font-weight-bold mr-1">{:lang('v_realname')}：</span>{$rs.realname}
                        <span class="font-weight-bold mx-1">{:lang('v_mobile')}：</span>{$rs.mobile}
                    </div>
                {notempty name="rs.contact"}<div class="form-control-static mr-2">{$rs.contact}</div>{/notempty}
                    <div class="form-control-static mr-2">
                        <span class="font-weight-bold mr-1">{:lang('v_telephone')}：</span>{$rs.telephone}
                        <span class="font-weight-bold mr-1">Email：</span>{$rs.email}
                    </div>
                {notempty name="rs.qq"}<div class="form-control-static mr-2">{$rs.qq}</div>{/notempty}
                {notempty name="rs.company"}<div class="form-control-static mr-2">{$rs.company}</div>{/notempty}
            </div>
            <div class="col-md-12"><hr></div>
            {notempty name="rs.attvalue"}
                {php}$attvalueArr = explode('<br>',$rs['attvalue']);{/php}
                <div class="col-md-12">
                    {foreach $attvalueArr as $attvalue}
                        {php}$nameValueArr = explode('：',$attvalue);{/php}
                        <div class="form-control-static mr-2"><span class="text-danger font-weight-bold">{:str_replace('*','',$nameValueArr[0])}：</span>{:str_replace('*','',$nameValueArr[1])}</div>
                    {/foreach}
                </div>
            {/notempty}
            <div class="col-md-12 font-weight-bold">{:lang('v_feedback')} {:lang('v_content_a')}：</div>
            <div class="col-md-12">
                {if config('app.other.system_type') eq 'company'}
                    {$rs.content|raw}
                {else /}
                    <textarea name="content" id="content1a" rows="5" style="width:100%; height:80px;">{$rs.content|raw}</textarea>
                {/if}
            </div>
            <div  {if config('app.other.system_type') eq 'company'}class="d-none"{/if}>
                <div class="col-md-12 mb-3">
                    <div class="d-inline">{:lang('v_status')}：</div>
                    <label class="form-check form-check-inline text-primary">
                        <input type="radio" name="signid" value="3" {eq name="rs.signid" value="3"}checked="checked"{/eq} class="form-check-input" /> {:lang('v_no_reply')}
                    </label>
                    <label class="form-check form-check-inline text-success">
                        <input type="radio" name="signid" value="1" {eq name="rs.signid" value="1"}checked="checked"{/eq} class="form-check-input" /> {:lang('v_yes_reply')}
                    </label>
                    <label class="form-check form-check-inline text-danger">
                        <input type="radio" name="signid" value="{php}echo time();{/php}" {gt name="rs.signid" value="8"}checked="checked"{/gt} class="form-check-input" /> {:lang('v_recycle')}
                    </label>
                </div>
                <div class="col-md-12 mt-2 text-center">
                    {if is_file(app()->getRootPath().'.env')}
                        <button type="submit" class="btn btn-success mr-4"><i class="fa fa-check-circle mr-2"></i>{:lang('v_save')}</button>
                    {else /}
                        <button type="button" class="do_ajax btn btn-info mr-4" onclick="javascript:do_ajax('#form_edit','.do_ajax','{:url('/feedback/edit',['lang'=>$lang])}','{:url('/feedback/index',['lang'=>$lang,'signid'=>3])}');"><i class="fa fa-check-circle mr-2"></i>{:lang('v_save')} {:lang('v_edit')}</button>
                    {/if}
                    <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times-circle"></i> {:lang('v_close')}</button>
                </div>
            </div>
        </div>
    </form>
</div>
{if config('app.other.system_type') neq 'company'}
    {include file="public/js_rich_text_small" /}
{/if}